faaliyet
Заглянувший
Joined: 25 Sep 2011
Posts: 1
Карма: 1 поощрить/наказать
|
Posted: Sun Sep 25, 2011 9:26 am (написано за 3 минуты 49 секунд)
Post subject: found bug
|
|
Hi there, (I'm Sorry , if I post this message into wrong topic. I don't know russian language. ) -Check the line of JSHttpRequest.php file. if (php_sapi_name() == "cgi") { This function works until version PHP5.3. Check this: php.net/manual/en/function.php-sapi-name.php
Here is the fix: (+cgi, +cgi-fcgi) $sapi_type = php_sapi_name(); if (substr($sapi_type, 0, 3) == 'cgi') {
|
|
suhov
Guest
Карма: 388 поощрить/наказать
|
Posted: Wed Dec 21, 2011 3:16 pm (спустя 2 месяца 26 дней 5 часов 49 минут; написано за 1 минуту 8 секунд)
Post subject: mistake here? $JsHttpRequest =& new JsHttpRequest("windows-1251");
|
|
this code from the jshttprequest example on your site $JsHttpRequest =& new JsHttpRequest("windows-1251"); shall it be $JsHttpRequest &= new JsHttpRequest("windows-1251"); ?
|
|
Maus
Модератор

Joined: 29 Jun 2003
Posts: 8151
Карма: 271 поощрить/наказать
Location: пос. Омсукчан Магаданской области
|
Posted: Fri Feb 17, 2012 10:58 pm (спустя 1 месяц 27 дней 7 часов 41 минуту; написано за 2 минуты 3 секунды)
Post subject:
|
|
suhov wrote: |
shall it be $JsHttpRequest &= new JsHttpRequest("windows-1251"); | No. It was PHP4 syntax ( "= new" produced object and its copy ). So, now syntax is:
|
|